package org.ehe.erp.domain.finance;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ehe.common.mybatis.core.domain.BaseEntity2;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
/**
 * ERP付款单表实体类
 * @author :zhangnn
 * @className :ErpFinancePayment
 * @description: TODO
 * @date 2025-08-18 14:18:51
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("erp_finance_payment")
public class ErpFinancePayment extends BaseEntity2 {
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 付款单号
     */
    private String no;

    /**
     * 采购单号
     */
    private String purchaseOrderNo;

    /**
     * 批次id
     */
    private Long batchId;
    /**
     * 批次名称
     */
    private String batchName;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 付款时间
     */
    private LocalDateTime paymentTime;

    /**
     * 财务人员编号
     */
    @TableField(value = "finance_user_id")
    private Long financeUserId;

    /**
     * 供应商编号
     */
    @TableField(value = "supplier_id")
    private Long supplierId;

    /**
     * 付款账户编号
     */
    @TableField(value = "account_id")
    private Long accountId;

    /**
     * 合计价格，单位：元
     */
    @TableField(value = "total_price")
    private BigDecimal totalPrice = BigDecimal.ZERO;

    /**
     * 优惠金额，单位：元
     */
    @TableField(value = "discount_price")
    private BigDecimal discountPrice = BigDecimal.ZERO;

    /**
     * 实付金额，单位：分
     */
    @TableField(value = "payment_price")
    private BigDecimal paymentPrice = BigDecimal.ZERO;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建部门
     */
    @TableField(value = "create_dept")
    private Long createDept;
    /**
     * 应付账款主表ID
     */
    @TableField(value = "payable_id")
    private Long payableId;
}
